using System;
using System.Collections.Generic;
using System.Text;

namespace MVCFramework.Menus
{
    public class MacroCommand :List <IMenuCommand>,IMenuCommand 
    {
        #region IMenuCommand Members

        void IMenuCommand.Execute()
        {
            foreach (IMenuCommand command in this)
            {
                command.Execute();
            }

        }

        string caption;

        string IMenuCommand.MenuCaption
        {
            get
            {
                return caption;
            }
            set
            {
                caption = value;
            }
        }

        #endregion
    }
}
